home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group00b.txt / 000004_icon-group-sender _Wed Jul 5 09:48:10 2000.msg < prev    next >
Internet Message Format  |  2001-01-03  |  2KB

  1. Return-Path: <icon-group-sender>
  2. Received: (from root@localhost)
  3.     by baskerville.CS.Arizona.EDU (8.9.1a/8.9.1) id JAA27563
  4.     for icon-group-addresses; Wed, 5 Jul 2000 09:47:56 -0700 (MST)
  5. Message-Id: <200007051647.JAA27563@baskerville.CS.Arizona.EDU>
  6. From: gep2@terabites.com
  7. Date: Wed, 05 Jul 2000 11:57:46 -0500
  8. Subject: Re: Error messages
  9. To: trollet@skynet.be, icon-group@optima.CS.Arizona.EDU
  10. Errors-To: icon-group-errors@optima.CS.Arizona.EDU
  11. Status: RO
  12. Content-Length: 1734
  13.  
  14. > This may not be related to Icon at all (although I feel that Icon, ProLog, Simula and Beta are 'close cousins :) - but I have been fooling around with the idea of writing a parser in ProLog - I started out with something close to the grammar for 8086 assembly.  Why? Because the syntax is simple, so syntax errors wont contain much information as to what the error actually is, but the semantics possibilities are enormous compared to, say, Pascal. Now, this is where I think it might be relevant: Wouldn't some kind of knowledge base help in producing more meaningful error messages? I have been through Icon enough to write small programs in it, and I had the same impression: The error messages really only say: "Error" - and you have to find the rest out for yourself. The case here about the [] could be added to the knowledgebase, so the next time, the error would be "I told myself I wouldn't use [] here!" :-)
  15.  
  16. > Any thoughts? Should I drop the idea of using an AI language to build an assembler?
  17. (I actually wanted to use Beta)
  18.  
  19. Well, you could probably write the assembler to run on a Turing machine, too.  That doesn't mean it's the best tool for the job.
  20.  
  21. For something that is so line-oriented as assembler language is, I'd think that either Icon or SNOBOL/SPITBOL would be relatively ideal tools for writing your assembler.  Although you COULD probably write it in Prolog, I have to wonder if the benefits of making that choice are enough to justify the hassle. 
  22.  
  23. Gordon Peterson
  24. http://web2.airmail.net/gep2/
  25. Support the Anti-SPAM Amendment!  Join at http://www.cauce.org/
  26. 12/19/98: the day the Conservatives demonstrated their scorn for their
  27.    fraudulent sham of representative government.  Voters, remember it!
  28.  
  29.